package com.example.fluentmybatis.service.impl;

import com.example.fluentmybatis.dao.intf.StudentScoreDao;
import com.example.fluentmybatis.dto.ScoreStatisticDTO;
import com.example.fluentmybatis.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author : Mr Li
 * @description : 业务层
 * @since : 2021/8/6 2:54 下午
 */
@Service
public class IStudentServiceImpl implements IStudentService {

    @Autowired
    private StudentScoreDao studentScoreDao;

    @Override
    public List<ScoreStatisticDTO> statistics(Date fromYear, Date endYear, String[] subjects) {
        return studentScoreDao.statistics(fromYear,endYear,subjects);
    }
}
